package cn.sockstack.service.Impl;

import cn.sockstack.dao.CommunitiesMapper;
import cn.sockstack.entity.Communities;
import cn.sockstack.service.CommunityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommunityServiceImpl implements CommunityService {
    @Autowired
    CommunitiesMapper communitiesMapper;
    @Override
    public List<Communities> findAll() {
        List<Communities> communities = communitiesMapper.selectAll();
        return communities;
    }
}
